#include <iostream>
#include "animal.h"
#include "person.h"

using namespace std;



int main() {

    cout<<"普通全局函数友元"<<endl;
    person p(4);
    cout<<getAge(p)<<endl;


    cout<<"类内 成员函数友元"<<endl;
    animal a;
    cout<<a.getAge1(p)<<endl;





    return 0;
}